﻿#include<iostream>

using namespace std;

void swap(int& x, int& y) {
	int t = x;
	x = y;
	y = t;
}

int main() {
	int a, b;
	cout << "变量a："; cin >> a;
	cout << "变量b："; cin >> b;

	swap(a, b);
	cout << "交换变量a和b的值\n";
	cout << "变量a：" << a << '\n';
	cout << "变量b：" << b << '\n';

	cin.get();
	cin.get();
}